let sleep2 = (time) => new Promise((resolve) => {
    setTimeout(resolve,time)
})
let fun = () => console.log('time out');
async function wait(time) {
    await sleep2(time);
    fun()
}
wait(3000)